#!/bin/bash

read -p "please input user name:" u_name

id $u_name &>/dev/null && echo "$u_name is exits" || (useradd $u_name ;echo "$u_name is not exists,but now we have created $u_name ok" ;id $u_name)

#if id $u_name &>/dev/null
#then
#	echo "$u_name is exists"
#else
#	useradd $u_name
#	echo "$u_name is not exists,but now we have created $u_name ok "
#fi
